/************************************************
* 文件描述: 程序首页内容类
* 待完善:
* 待优化:
* 修改日期：2020.11.04
* 修改内容：
*   创建  HZH
*************************************************/
#ifndef MAINPAGE_H
#define MAINPAGE_H

#include <QWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QPushButton>
#include <QDesktopServices>
#include <QUrl>
#include <QDebug>
#include "widget_parameter_class.h"
#include "myclick_widget.h"
#include "iconBtn.h"

class MainPage : public QWidget
{
    Q_OBJECT
public:
    explicit MainPage(QWidget *parent = nullptr);
    void changePageForTheme(const QString& str);
    void changeFont(QFont curFont);
protected:
    bool eventFilter(QObject *obj, QEvent *ev) override;
signals:
private:

    QString m_currentTheme = "ukui-default";
    void initPageLocation();

    QLabel *m_pKylinPic = nullptr;
    QLabel *m_pMoreInfoLink_1 = nullptr;
    QLabel *m_pMoreInfoLink_2 = nullptr;
    QLabel *m_pMoreInfoLink_3 = nullptr;
    QLabel *m_pPageTitle = nullptr;

    QWidget *m_pOnline = nullptr;
    IconBtn *m_pOnline_1 = nullptr;
    QLabel *m_pOnline_2 = nullptr;
    QLabel *m_pOnline_3 = nullptr;

    QWidget *m_pTelphone = nullptr;
    IconBtn *m_pTelphone_1 = nullptr;
    QLabel *m_pTelphone_2 = nullptr;
    QLabel *m_pTelphone_3 = nullptr;

    QWidget *m_pMail = nullptr;
    IconBtn *m_pMail_1 = nullptr;
    QLabel *m_pMail_2 = nullptr;
    QLabel *m_pMail_3 = nullptr;

    QWidget *m_pWeChat = nullptr;
    IconBtn *m_pWeChat_1 = nullptr;
    QLabel *m_pWeChat_2 = nullptr;
    QLabel *m_pWeChat_3 = nullptr;

    QWidget *m_pDIY = nullptr;
    IconBtn *m_pDIY_1 = nullptr;
    QLabel *m_pDIY_2 = nullptr;
    QLabel *m_pDIY_3 = nullptr;
};

#endif // MAINPAGE_H
